<?php

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#ndkReceiptDebet').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'ndkReceiptDebet',
	'dataProvider'=>$model->searchReceiptDebet(),
	'filter'=>$model,
	'columns'=>array(
		'code',
		'name',
		array(
        'header'=>'Select',
        'type'=>'raw',
        'value'=>'CHtml::radioButton("coacreditid",false,array(
                        "value"=>"$data->id",
						"id"=>"coacreditid",
						"nama_coa"=>"$data->name",
                        ))',
        'htmlOptions'=>array(
                'style'=>'text-align:center'
                ),
		),
	),
)); ?>